package com.itheima;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.User;
import com.itheima.domain.User;

import java.util.List;

public interface UserService {
    PageInfo<User> findByPage(int currPage, int pageSize);
    void save(User user);
    User findById(String id);
    void update(User user);
    void delete(String[] ids);
    List<User> findAll();
    void updateUserAndRoles(String userId, String[] roleIds);

    User login(String email, String password);
}
